<?php
namespace app\modules\admin\controllers;

use app\libs\LibUser;
use app\libs\Sys;

class IndexController extends \fate\web\Controller {
    public function run() {
        $uid = LibUser::getLoginUid();

        if(!is_numeric($uid) || !Sys::isSuperUser($uid)) {
            header('Location: /');
            exit;
        }

        $this->render('index');
    }
}
